package org.luxor.commons.mvc.config.properties;

/**
 * 客户端证书
 *
 * @author Mr.yan  @date 2022/11/6
 */
public class ClientCredential {

    /**
     * 客户端ID
     */
    private String clientId;

    /**
     * 客户端秘钥
     */
    private String clientSecret;

    /**
     * 启用签名校验？
     */
    private Boolean enabledSignature;

    /**
     * 启用报文加解密？
     */
    private Boolean enabledEncryption;

    public ClientCredential() {
    }

    public ClientCredential(String clientId, String clientSecret) {
        this.clientId = clientId;
        this.clientSecret = clientSecret;
        this.enabledSignature = false;
        this.enabledEncryption = false;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getClientSecret() {
        return clientSecret;
    }

    public void setClientSecret(String clientSecret) {
        this.clientSecret = clientSecret;
    }

    public Boolean getEnabledSignature() {
        return enabledSignature;
    }

    public void setEnabledSignature(Boolean enabledSignature) {
        this.enabledSignature = enabledSignature;
    }

    public Boolean getEnabledEncryption() {
        return enabledEncryption;
    }

    public void setEnabledEncryption(Boolean enabledEncryption) {
        this.enabledEncryption = enabledEncryption;
    }

    @Override
    public String toString() {
        return "ClientCredential{" +
                "clientId='" + clientId + '\'' +
                ", clientSecret='" + clientSecret + '\'' +
                ", enabledSignature=" + enabledSignature +
                ", enabledEncryption=" + enabledEncryption +
                '}';
    }
}
